package com.fangcun.mapper;

import java.util.List;

import com.fangcun.bean.api.advertising.request.AdvertisingDisplaySearchRequest;
import com.fangcun.bean.api.advertising.response.AdvertisingDisplaySearchResponse;
import com.fangcun.entity.Advertising;

public interface AdvertisingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Advertising record);

    int insertSelective(Advertising record);

    Advertising selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Advertising record);

    int updateByPrimaryKey(Advertising record);
    
    /** 前端查询广告 **/
	List<AdvertisingDisplaySearchResponse> listForApi(AdvertisingDisplaySearchRequest request);
	
	/**后端广告列表 **/
	List<Advertising> listForAdmin(Advertising request);
}